<?php
Route::group(
    [
        'middleware' => [
            'api.bootstrap',
            \Module\Member\Middleware\ApiAuthMiddleware::class,
        ],
        'namespace' => '\App\Api\Controller',
        'prefix' => 'api',
    ], function () {

    Route::match(['get', 'post'], 'config_app', 'ConfigController@app');
    Route::match(['get', 'post'], 'config_constant', 'ConfigController@constant');

    Route::match(['post'], 'blog/paginate', 'BlogController@paginate');
    Route::match(['post'], 'blog/self_paginate', 'BlogController@selfPaginate');
    Route::match(['post'], 'blog/get', 'BlogController@get');
    Route::match(['post'], 'blog/storedValue', 'BlogController@storedValue');
    Route::match(['get','post'], 'blog/getBlogList', 'BlogController@getBlogList');
    //龙币统计图
    Route::match(['get','post'], 'blog/getLongList', 'BlogController@getLongList');
    //龙币详情
    Route::match(['get','post'], 'blog/getSilverDollarCoin', 'BlogController@getSilverDollarCoin');
    //短信验证码
    Route::match(['post'], 'blog/sendMessage', 'BlogController@sendMessage');
    //获取h5页面介绍图
    Route::match(['get', 'post'], 'blog/getIntroImg', 'BlogController@getIntroImg');
    //获取用户龙币列表
    Route::match(['get', 'post'], 'blog/getOrderDragonList', 'BlogController@getOrderDragonList');
    //支付宝回调方法
    Route::match(['get', 'post'], 'alipay/notify', 'AlipayController@notify');
    //支付
    Route::match(['post'], 'payment/startPay', 'AlipayController@pay');
    //支付宝退款
    Route::match(['post'], 'payment/refund', 'AlipayController@refund');
    //提现
    Route::match(['post'], 'payment/withdrawal', 'AlipayController@withdrawal');
});